package com.ibuonline.b2b.entity;

import java.io.Serializable;

public class PaidGoldBooth implements Serializable {

	private static final long serialVersionUID = 2777455568967686282L;

	//fields
	private java.lang.Integer id;
	private java.lang.Integer companyId;
	private java.lang.String pic;
	private java.lang.String title;
	private java.lang.String url;
	private java.lang.String remark;
	private java.lang.String cooperateMode;
	private java.lang.Double price;
	private java.lang.Integer status;
	private java.lang.String customer;
	private java.lang.String telephone;
	private java.lang.String mobile;
	private java.lang.String email;
	private java.lang.Integer viewCount;
	private java.lang.Integer clickCount;
	private java.sql.Timestamp createTime;

	//default constructor
	public PaidGoldBooth() {
	}

	//getter
	public java.lang.Integer getId() {
		return id;
	}
	public java.lang.Integer getCompanyId() {
		return companyId;
	}
	public java.lang.String getPic() {
		return pic;
	}
	public java.lang.String getTitle() {
		return title;
	}
	public java.lang.String getUrl() {
		return url;
	}
	public java.lang.String getRemark() {
		return remark;
	}
	public java.lang.String getCooperateMode() {
		return cooperateMode;
	}
	public java.lang.Double getPrice() {
		return price;
	}
	public java.lang.Integer getStatus() {
		return status;
	}
	public java.lang.String getCustomer() {
		return customer;
	}
	public java.lang.String getTelephone() {
		return telephone;
	}
	public java.lang.String getMobile() {
		return mobile;
	}
	public java.lang.String getEmail() {
		return email;
	}
	public java.lang.Integer getViewCount() {
		return viewCount;
	}
	public java.lang.Integer getClickCount() {
		return clickCount;
	}
	public java.sql.Timestamp getCreateTime() {
		return createTime;
	}

	//setter
	public void setId(java.lang.Integer id) {
		this.id = id;
	}
	public void setCompanyId(java.lang.Integer companyId) {
		this.companyId = companyId;
	}
	public void setPic(java.lang.String pic) {
		this.pic = pic;
	}
	public void setTitle(java.lang.String title) {
		this.title = title;
	}
	public void setUrl(java.lang.String url) {
		this.url = url;
	}
	public void setRemark(java.lang.String remark) {
		this.remark = remark;
	}
	public void setCooperateMode(java.lang.String cooperateMode) {
		this.cooperateMode = cooperateMode;
	}
	public void setPrice(java.lang.Double price) {
		this.price = price;
	}
	public void setStatus(java.lang.Integer status) {
		this.status = status;
	}
	public void setCustomer(java.lang.String customer) {
		this.customer = customer;
	}
	public void setTelephone(java.lang.String telephone) {
		this.telephone = telephone;
	}
	public void setMobile(java.lang.String mobile) {
		this.mobile = mobile;
	}
	public void setEmail(java.lang.String email) {
		this.email = email;
	}
	public void setViewCount(java.lang.Integer viewCount) {
		this.viewCount = viewCount;
	}
	public void setClickCount(java.lang.Integer clickCount) {
		this.clickCount = clickCount;
	}
	public void setCreateTime(java.sql.Timestamp createTime) {
		this.createTime = createTime;
	}

	//equals method
	public boolean equals(Object other) {
		if (this == other)
			return true;
		if (!(other instanceof PaidGoldBooth))
			return false;

		final PaidGoldBooth paidGoldBooth = (PaidGoldBooth)other;
		if (!this.id.equals(paidGoldBooth.getId()))
			return false;

		return true;
	}

	//hashCode method
	public int hashCode() {
		StringBuffer keys = new StringBuffer();
		keys.append(id).append(",");
		if (keys.length() > 0)
			keys.deleteCharAt(keys.length() - 1);
		return keys.toString().hashCode();
	}

	//toString method
	public String toString() {
		return new StringBuilder("PaidGoldBooth[")
			.append("id=").append(id).append(", ")
			.append("companyId=").append(companyId).append(", ")
			.append("pic=").append(pic).append(", ")
			.append("title=").append(title).append(", ")
			.append("url=").append(url).append(", ")
			.append("remark=").append(remark).append(", ")
			.append("cooperateMode=").append(cooperateMode).append(", ")
			.append("price=").append(price).append(", ")
			.append("status=").append(status).append(", ")
			.append("customer=").append(customer).append(", ")
			.append("telephone=").append(telephone).append(", ")
			.append("mobile=").append(mobile).append(", ")
			.append("email=").append(email).append(", ")
			.append("viewCount=").append(viewCount).append(", ")
			.append("clickCount=").append(clickCount).append(", ")
			.append("createTime=").append(createTime).append("]").toString();
	}
	
	///##########################################3
	private PaidGoldBoothKeyword boothKw;

	public PaidGoldBoothKeyword getBoothKw() {
		return boothKw;
	}
	public void setBoothKw(PaidGoldBoothKeyword boothKw) {
		this.boothKw = boothKw;
	}
	
	public String getPicPath() {
		if (pic == null) {
            return null;
        }
        return com.ibuonline.b2b.common.ResourceUtil.getResPath(pic);
	}

	
	
	
}